<?php echo $this->Form->create("Property", array("class" => "form", "action" => "add")); ?>
<?php echo $this->Form->input('Property.nombre', array('label' => 'Nombre', 'class' => 'required')); ?>
<?php echo $this->Form->input('Property.matricula', array('label' => 'Matrícula', 'class' => '')); ?>
<?php echo $this->Form->input('Property.cedulaCatastral', array('label' => 'cedulaCatastral', 'class' => '')); ?>
<?php echo $this->Form->input('Property.area', array('label' => 'Área', 'class' => 'required')); ?>
<?php echo $this->Form->input('Property.area_permuta', array('label' => 'Área permuta', 'class' => 'required')); ?>

<?php
echo $this->Ajax->observeField('PropertyDepartamentId', array(
    'url' => array('action' => 'select'),
    'frequency' => 0.2,
    'update' => 'ciudades'
        )
);
?>
<?php echo $this->Form->input('Property.departament_id', array('label' => 'Departamento', 'empty' => 'Seleccione departamento')); ?>

<div id="ciudades">

</div>
<?php echo $this->Form->hidden('Property.proyect_id', array('value' => $proyect_id)); ?>
<?php echo $this->Form->end("Guardar") ?>
